import {
	request
} from '@/utils/request.js'
// const key = '374767'
export const getBannerAPI = () => {
	return request({
		url: '/homeBanner'
	})
}

export const getDayRecommonAPI = () => {
	return request({
		url: '/randomWall'
	})
}

export const getNoticeAPI = () => {
	return request({
		url: '/wallNewsList'
	})
}

export const getNoticeDetailAPI = (data={}) => {
	return request({
		url: '/wallNewsDetail',
		data
	})
}

export const getClassfyAPI = (data={}) => {
	return request({
		url: '/classify',
		data
	})
}

export const getClassListAPI = (data={}) => {
	return request({
		url: '/wallList',
		data
	})
}

export const getDetailWallAPI = (data={}) => {
	return request({
		url: '/detailWall',
		data
	})
}

// 壁纸评分
export const setScoreAPI = (data={}) => {
	return request({
		url: '/setupScore',
		data
	})
}

export const writeDownloadAPI = (data={}) => {
	return request({
		url: '/downloadWall',
		data
	})
}

export const getUserInfoAPI = (data={}) => {
	return request({
		url: '/userInfo',
		data
	})
}

export const getUserWallListAPI = (data={}) => {
	return request({
		url: '/userWallList',
		data
	})
}

// 搜索壁纸
export const searchWallAPI = (data={}) => {
	return request({
		url: '/searchWall',
		data
	})
}